import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layouts/index.vue';

const identity: RouteRecordRaw[] = [
  {
    path: '/identity',
    name: 'identity',
    component: Layout,
    meta: {
      title: '身份管理',
      icon: 'user',
    },
    children: [
      {
        path: 'distributor',
        name: 'identityDistributor',
        component: () => import('@/pages/identity/distributor/index.vue'),
        meta: {
          title: '分销商管理',
        },
      },
      {
        path: 'vehicle',
        name: 'identityVehicle',
        component: () => import('@/pages/identity/vehicle/index.vue'),
        meta: {
          title: '车辆管理',
        },
      },
      {
        path: 'driver',
        name: 'identityDriver',
        component: () => import('@/pages/identity/driver/index.vue'),
        meta: {
          title: '司机管理',
        },
      },
    ],
  },
];

export default identity; 